#define  _CRT_SECURE_NO_WARNINGS
#include "Heap.h"
void Test()
{
	Heap hp;
	HeapInit(&hp);
	int N = 100;
	for (int i = 0; i < N; i++)
	{
		int cur = rand()%1000;
		HeapPush(&hp, cur);
	}
	for (int i = 0; i < N; i++)
	{
		int cur = HeapTop(&hp);
		printf("%d ", cur);
		HeapPop(&hp);
	}
	return;
}

int main()
{
	Test();
	return 0;
}